﻿namespace _3_NovaAdmin.Domain.Abstractions;

/// <summary>
/// 复合主键实体标记接口
/// </summary>
public interface ICompositeEntity<TKey> : IAuditable<TKey> where TKey : notnull
{
    // 空接口，仅用于类型标记
}

/// <summary>
/// 单主键实体接口
/// </summary>
/// <typeparam name="TKey">主键类型</typeparam>
public interface IEntity<TKey> : ICompositeEntity<TKey> where TKey : notnull
{
    /// <summary>  
    /// 实体的唯一标识符（主键）  
    /// </summary>  
    TKey Id { get; }
}